package com.jiuyue.mq.comtroller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jiuyue.mq.service.TestService;

@Controller
@RequestMapping("aop")
public class TestController {

	@Resource
	private TestService testService;
	
	@ResponseBody
	@RequestMapping("eatCarrot")
	public String eatCarrot() {
		testService.eatCabbage();
		return "测试aop";
	}
	
	
	
	
	
}
